package fastjson;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * Created by User on 2017/11/27.
 */
public class App {

    public static void main(String[] args) {


        String s = JSON.toJSONString(new Person(2111111111111111111L, "Mary", 21, Gender.女, new Date(), null), SerializerFeature.WriteEnumUsingToString, SerializerFeature.WriteMapNullValue, SerializerFeature.BrowserCompatible);

        System.out.println(s);

    }

}
